package codej.ast;

import static codej.ast.Option.*;
import codej.ast.*;

public class InstanceOfExpression extends Expression {

	private final Type type;

	@Override
	public void accept(Visitor visitor) {
		visitor.visit(this);
	}

	public InstanceOfExpression(Type type) {
		this.type = type;
	}

	public Type getType() {
		return option(type, new Type());
	}

}
